/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.toto.message.imp;


/**
 *
 * @author 210012285
 */
public class DisplayMsg implements Message{
  
    private String name = "Sandiso";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    @Override
    public String displayMsg() 
    {
        return "Your name is:";
    }

    @Override
    public float calcTotalPrice(float price, int items) 
    {
       float totalprice = 0;
       totalprice += price * items;
       return  totalprice;
    }

	@Override
	public int avgMark(int a,int b)
	{
		return a/b;
	}
	@Override
		public boolean findName(String searchName)
		{
			  boolean found = false;

			 String[] names = new String[]{"Toto","Jeff","Soga"};

			  for(int i = 0; i<names.length; i++)
			  {
				if(searchName == names[i])
					return true;
				  else
					  return false;

			  }
                          return found;
			 
			 	
		}

   

    
}
